home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4345 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: news.umbc.edu!not-for-mail
  2. From: schlein@umbc.edu (Jonas J. Schlein)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: void main() and other atrocities!
  5. Date: 3 Feb 1996 16:22:23 -0500
  6. Organization: University of Maryland Baltimore County
  7. Message-ID: <4f0jmf$4g0@umbc9.umbc.edu>
  8. References: <4eduaj$1aq@grouper.Exis.Net> <4emub9$1mo@fountain.mindlink.net> <4epplj$egf@host-3.cyberhighway.net> <4erjn2INN38b@keats.ugrad.cs.ubc.ca>
  9. NNTP-Posting-Host: umbc9.umbc.edu
  10. NNTP-Posting-User: schlein
  11.  
  12. Kazimir Kylheku <c2a192@ugrad.cs.ubc.ca> wrote:
  13. |> There is nothing with 'void main()'. It's not giverned by the ANSI standard,
  14. |> first of all, because that is not an ANSI definition. An ANSI definiton
  15. |> would be more like 'void main(void)'.
  16. |> 
  17. |> You don't need main() to be defined has having any sort of return value
  18. |> unless you plan to "return" out of it. If you use exit(0) like me,
  19. |> declaring the function void is ok, since your function never returns.
  20. |> 
  21. |> The antsy standard is _great_ for assuring me that my bike helmet is safe,
  22. |> mind you.
  23.  
  24. Pardon my French, but please stop talking out of your @$$. Obviously you
  25. have never read the FAQ or if you did it didn't sink in. Questions
  26. 11.12, 11.14 and 11.15 should set ya straight. It's freely available
  27. in electronic format at:
  28.  
  29. ftp://rtfm.mit.edu/pub/usenet-by-hierarchy/comp/lang/c/C-FAQ-list
  30. -- 
  31. "If it wasn't for C, we would be using BASI, PASAL, and OBOL."
  32.  
  33. Jonas J. Schlein  (schlein@gl.umbc.edu)
  34.